//顺序栈测试

#include <iostream>
#include "sqstack.h"

using namespace std;

int main()
{
    SqStack<int, 10> S;

    InitStack(S);

    Push(S, 100);
    Push(S, 200);
    Push(S, 300);
    Push(S, 400);

    while(!StackEmpty(S))
    {
        int e;
        Pop(S, e);
        cout << e << endl;
    }

    return 0;
}